package com.example.demo.controller;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.custom.AjaxResult;
import com.example.demo.entity.SysUser;
import com.example.demo.service.AfterSaleFrontWeiXiuComputerService;
import com.example.demo.service.SysUserService;

/**
 * @author DELL
 *售后部前台维修表
 */
@RestController
@RequestMapping(value = "/aftersalefrontweixiu")
public class AfterSaleFrontWeiXiuComputerController {
	@Autowired
	private AfterSaleFrontWeiXiuComputerService afterService;
	@Autowired
	private SysUserService sysuserService;
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 2 进厂台次合计
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/jinChangTaiCiHeJi")
	public Object jinChangTaiCiHeJi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer jinChangHejiNums = afterService.jinChangHejiNums(user, beginDate1, endDate1);
		if(jinChangHejiNums!=null) {
			return new AjaxResult(jinChangHejiNums);
		}else {
			return new AjaxResult(0);
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 3 保养进厂台次
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/baoYangJinChangTaiCi")
	public Object baoYangJinChangTaiCi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer baoYangJinChangNums = afterService.baoYangJinChangNums(user, beginDate1, endDate1);
		if(baoYangJinChangNums!=null) {
			return new AjaxResult(baoYangJinChangNums);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 4 机电进厂台次
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/jiDianJinChangTaiCi")
	public Object jiDianJinChangTaiCi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		  Integer jiDianJinChangNums = afterService.jiDianJinChangNums(user, beginDate1, endDate1);	
		if(jiDianJinChangNums!=null) {
			return new AjaxResult(jiDianJinChangNums);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return  5 钣喷进厂台次
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/banPenJinChangTaiCi")
	public Object banPenJinChangTaiCi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer banPenJinChangNums = afterService.banPenJinChangNums(user, beginDate1, endDate1);
		if(banPenJinChangNums!=null) {
			return new AjaxResult(banPenJinChangNums);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 6 洗美进厂台次
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/xiMeiJinChangTaiCi")
	public Object xiMeiJinChangTaiCi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		 Integer xiMeiJinChangNums = afterService.xiMeiJinChangNums(user, beginDate1, endDate1);
		if(xiMeiJinChangNums!=null) {
			return new AjaxResult(xiMeiJinChangNums);
		}else {
			return new AjaxResult(0);
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 7 保险事故车进厂台次
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/baoXianShiGuCheJinChangTaiCi")
	public Object 	baoXianShiGuCheJinChangTaiCi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer baoxianShiGuCheNums = afterService.baoxianShiGuCheNums(user, beginDate1, endDate1);
		if(baoxianShiGuCheNums!=null) {
			return new AjaxResult(baoxianShiGuCheNums);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 8 索赔&召回台次
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/suoPeiAndZhaoHuiNums")
	public Object 	suoPeiAndZhaoHuiNums(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer suoPeiAndZhaoHuiNums = afterService.suoPeiAndZhaoHuiNums(user, beginDate1, endDate1);
		if(suoPeiAndZhaoHuiNums!=null) {
			return new AjaxResult(suoPeiAndZhaoHuiNums);
		}else {
			return new AjaxResult(0);
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 9 免费检查台次
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/mianJianJinChangNums")
	public Object 	mianJianJinChangNums(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer mianJianJinChangNums = afterService.mianJianJinChangNums(user, beginDate1, endDate1);
		if(mianJianJinChangNums!=null) {
			return new AjaxResult(mianJianJinChangNums);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 10 新车准备台次
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/xinCheZhunBeiNums")
	public Object 	xinCheZhunBeiNums(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer xinCheZhunBeiNums = afterService.xinCheZhunBeiNums(user, beginDate1, endDate1);
		if(xinCheZhunBeiNums!=null) {
			return new AjaxResult(xinCheZhunBeiNums);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 11 保养进厂占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/baoYangJinChangZhanBi")
	public Object baoYangJinChangZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float baoYangJinChangZhanBi = afterService.baoYangJinChangZhanBi(user, beginDate1, endDate1);
		if(baoYangJinChangZhanBi!=null) {
			return new AjaxResult(baoYangJinChangZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 12 机电进厂占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/jiDianJinChangZhanBi")
	public Object jiDianJinChangZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float jiDianJinChangZhanBi = afterService.jiDianJinChangZhanBi(user, beginDate1, endDate1);
		if(jiDianJinChangZhanBi!=null) {
			return new AjaxResult(jiDianJinChangZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 13 钣喷进厂占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/banPenJinChangZhanBi")
	public Object banPenJinChangZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float banPenJinChangZhanBi = afterService.banPenJinChangZhanBi(user, beginDate1, endDate1);
		if(banPenJinChangZhanBi!=null) {
			return new AjaxResult(banPenJinChangZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 14 洗美进厂占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/xiMeiJinChangZhanBi")
	public Object xiMeiJinChangZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float xiMeiJinChangZhanBi = afterService.xiMeiJinChangZhanBi(user, beginDate1, endDate1);
		if(xiMeiJinChangZhanBi!=null) {
			return new AjaxResult(xiMeiJinChangZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 15 保险事故车进厂占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/baoXianShiGuJinChangZhanBi")
	public Object baoXianShiGuJinChangZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float baoXianShiGuJinChangZhanBi = afterService.baoXianShiGuJinChangZhanBi(user, beginDate1, endDate1);
		if(baoXianShiGuJinChangZhanBi!=null) {
			return new AjaxResult(baoXianShiGuJinChangZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 16 索赔&召回占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/suoPeiAndZhaoHuiJinChangZhanBi")
	public Object suoPeiAndZhaoHuiJinChangZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float suoPeiAndZhaoHuiJinChangZhanBi = afterService.suoPeiAndZhaoHuiJinChangZhanBi(user, beginDate1, endDate1);
		if(suoPeiAndZhaoHuiJinChangZhanBi!=null) {
			return new AjaxResult(suoPeiAndZhaoHuiJinChangZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 17 免费检查进厂占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/mianJianZhanBi")
	public Object mianJianZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float mianJianZhanBi = afterService.mianJianZhanBi(user, beginDate1, endDate1);
		if(mianJianZhanBi!=null) {
			return new AjaxResult(mianJianZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 18 新车准备台次占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/xinCheZhunBeiZhanBi")
	public Object xinCheZhunBeiZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float xinCheZhunBeiZhanBi = afterService.xinCheZhunBeiZhanBi(user, beginDate1, endDate1);
		if(xinCheZhunBeiZhanBi!=null) {
			return new AjaxResult(xinCheZhunBeiZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 19 配件收入合计
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/peiJianShouRuZongJi")
	public Object peiJianShouRuZongJi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer peiJianShouRuZongJi = afterService.peiJianShouRuZongJi(user, beginDate1, endDate1);
		if(peiJianShouRuZongJi!=null) {
			return new AjaxResult(peiJianShouRuZongJi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 20 保养配件收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/baoYangPeiJianPrice")
	public Object baoYangPeiJianPrice(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float baoYangPeiJianPrice = afterService.baoYangPeiJianPrice(user, beginDate1, endDate1);
		if(baoYangPeiJianPrice!=null) {
			return new AjaxResult(baoYangPeiJianPrice);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 21 机电配件收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/jiDianPeiJianPrice")
	public Object jiDianPeiJianPrice(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		 Float jiDianPeiJianPrice = afterService.jiDianPeiJianPrice(user, beginDate1, endDate1);
		if(jiDianPeiJianPrice!=null) {
			return new AjaxResult(jiDianPeiJianPrice);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 22 钣喷配件收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/banPenPeiJianPrice")
	public Object banPenPeiJianPrice(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		  Float banPenPeiJianPrice = afterService.banPenPeiJianPrice(user, beginDate1, endDate1);
		if(banPenPeiJianPrice!=null) {
			return new AjaxResult(banPenPeiJianPrice);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 23 洗美配件收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/xiMeiPeiJianPrice")
	public Object xiMeiPeiJianPrice(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		 Float xiMeiPeiJianPrice = afterService.xiMeiPeiJianPrice(user, beginDate1, endDate1);
		if(xiMeiPeiJianPrice!=null) {
			return new AjaxResult(xiMeiPeiJianPrice);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 24 保险事故车配件收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/baoXianShiGuChePeiJian")
	public Object baoXianShiGuChePeiJian(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer baoXianShiGuChePeiJian = afterService.baoXianShiGuChePeiJian(user, beginDate1, endDate1);
		if(baoXianShiGuChePeiJian!=null) {
			return new AjaxResult(baoXianShiGuChePeiJian);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 25 索赔&召回配件收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/suoPeiPeiJian")
	public Object suoPeiPeiJian(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer suoPeiPeiJian = afterService.suoPeiPeiJian(user, beginDate1, endDate1);
		if(suoPeiPeiJian!=null) {
			return new AjaxResult(suoPeiPeiJian);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 26 新车准备配件收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/xinCheZhunBeiPeiJian")
	public Object xinCheZhunBeiPeiJian(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float xinCheZhunBeiPeiJian = afterService.xinCheZhunBeiPeiJian(user, beginDate1, endDate1);
		if(xinCheZhunBeiPeiJian!=null) {
			return new AjaxResult(xinCheZhunBeiPeiJian);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 27 工时收入合计
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/gongShiShouRuZongJi")
	public Object gongShiShouRuZongJi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		 Integer gongShiShouRuZongJi = afterService.gongShiShouRuZongJi(user, beginDate1, endDate1);
		if(gongShiShouRuZongJi!=null) {
			return new AjaxResult(gongShiShouRuZongJi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 28 保养工时收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/baoyangGongshiShouRu")
	public Object baoyangGongshiShouRu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float baoyangGongshiShouRu = afterService.baoyangGongshiShouRu(user, beginDate1, endDate1);
		if(baoyangGongshiShouRu!=null) {
			return new AjaxResult(baoyangGongshiShouRu);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 29 机电工时收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/jiDianGongshiShouRu")
	public Object jiDianGongshiShouRu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		 Float jiDianGongshiShouRu = afterService.jiDianGongshiShouRu(user, beginDate1, endDate1);
		if(jiDianGongshiShouRu!=null) {
			return new AjaxResult(jiDianGongshiShouRu);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 30 钣喷工时收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/banPenGongshiShouRu")
	public Object banPenGongshiShouRu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		 Float banPenGongshiShouRu = afterService.banPenGongshiShouRu(user, beginDate1, endDate1);
		if(banPenGongshiShouRu!=null) {
			return new AjaxResult(banPenGongshiShouRu);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 31 洗美工时收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/xiMeiGongshiShouRu")
	public Object xiMeiGongshiShouRu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float xiMeiGongshiShouRu = afterService.xiMeiGongshiShouRu(user, beginDate1, endDate1);
		if(xiMeiGongshiShouRu!=null) {
			return new AjaxResult(xiMeiGongshiShouRu);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 32 保险事故车工时收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/baoXianShiGuCheGongShi")
	public Object baoXianShiGuCheGongShi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer baoXianShiGuCheGongShi = afterService.baoXianShiGuCheGongShi(user, beginDate1, endDate1);
		if(baoXianShiGuCheGongShi!=null) {
			return new AjaxResult(baoXianShiGuCheGongShi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 33 索赔&召回工时收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/suoPeiGongShi")
	public Object suoPeiGongShi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer suoPeiGongShi = afterService.suoPeiGongShi(user, beginDate1, endDate1);
		if(suoPeiGongShi!=null) {
			return new AjaxResult(suoPeiGongShi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 34 新车准备工时收入
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/xinCheZhunBeiGongShi")
	public Object xinCheZhunBeiGongShi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer xinCheZhunBeiGongShi = afterService.xinCheZhunBeiGongShi(user, beginDate1, endDate1);
		if(xinCheZhunBeiGongShi!=null) {
			return new AjaxResult(xinCheZhunBeiGongShi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 35 售后维修收入合计
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/ShouHouWeiXiuShouRuHeJi")
	public Object ShouHouWeiXiuShouRuHeJi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float shouHouWeiXiuShouRuHeJi = afterService.ShouHouWeiXiuShouRuHeJi(user, beginDate1, endDate1);
		if(shouHouWeiXiuShouRuHeJi!=null) {
			return new AjaxResult(shouHouWeiXiuShouRuHeJi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 36 保养收入合计
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/baoYangHeJi")
	public Object baoYangHeJi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float baoYangHeJi = afterService.baoYangHeJi(user, beginDate1, endDate1);
		if(baoYangHeJi!=null) {
			return new AjaxResult(baoYangHeJi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 37 机电收入合计
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/jiDianHeJi")
	public Object jiDianHeJi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer jiDianHeJi = afterService.jiDianHeJi(user, beginDate1, endDate1);
		if(jiDianHeJi!=null) {
			return new AjaxResult(jiDianHeJi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 38 钣喷收入合计
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/banPenHeJi")
	public Object banPenHeJi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer banPenHeJi = afterService.banPenHeJi(user, beginDate1, endDate1);
		if(banPenHeJi!=null) {
			return new AjaxResult(banPenHeJi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 39 洗美收入合计
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/xiMeiHeJi")
	public Object xiMeiHeJi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer xiMeiHeJi = afterService.xiMeiHeJi(user, beginDate1, endDate1);
		if(xiMeiHeJi!=null) {
			return new AjaxResult(xiMeiHeJi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 40 保险事故车收入合计
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/baoXianShiGuCheHeJi")
	public Object baoXianShiGuCheHeJi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer baoXianShiGuCheHeJi = afterService.baoXianShiGuCheHeJi(user, beginDate1, endDate1);
		if(baoXianShiGuCheHeJi!=null) {
			return new AjaxResult(baoXianShiGuCheHeJi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 41 索赔&召回收入合计
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/suoPeiZhaoHuiShouRuHeJi")
	public Object suoPeiZhaoHuiShouRuHeJi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer suoPeiZhaoHuiShouRuHeJi = afterService.suoPeiZhaoHuiShouRuHeJi(user, beginDate1, endDate1);
		if(suoPeiZhaoHuiShouRuHeJi!=null) {
			return new AjaxResult(suoPeiZhaoHuiShouRuHeJi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 42 新车准备收入合计
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/xinCheZhunBeiShouRuHeji")
	public Object xinCheZhunBeiShouRuHeji(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Integer xinCheZhunBeiShouRuHeji = afterService.xinCheZhunBeiShouRuHeji(user, beginDate1, endDate1);
		if(xinCheZhunBeiShouRuHeji!=null) {
			return new AjaxResult(xinCheZhunBeiShouRuHeji);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 43 保养收入占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/baoYangShouRuZhanBi")
	public Object baoYangShouRuZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float baoYangShouRuZhanBi = afterService.baoYangShouRuZhanBi(user, beginDate1, endDate1);

			return new AjaxResult(baoYangShouRuZhanBi);
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 44 机电收入占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/jiDianShouRuZhanBi")
	public Object jiDianShouRuZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float jiDianShouRuZhanBi = afterService.jiDianShouRuZhanBi(user, beginDate1, endDate1);
			return new AjaxResult(jiDianShouRuZhanBi);
	
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 45 钣喷收入占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/banPenShouRuZhanBi")
	public Object banPenShouRuZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float banPenShouRuZhanBi = afterService.banPenShouRuZhanBi(user, beginDate1, endDate1);
		if(banPenShouRuZhanBi!=null) {
			return new AjaxResult(banPenShouRuZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 46 洗美收入占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/xiMeiShouRuZhanBi")
	public Object xiMeiShouRuZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float xiMeiShouRuZhanBi = afterService.xiMeiShouRuZhanBi(user, beginDate1, endDate1);
		if(xiMeiShouRuZhanBi!=null) {
			return new AjaxResult(xiMeiShouRuZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 47 保险事故车收入占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/baoXianShiGuCheShouRuZhanBi")
	public Object baoXianShiGuCheShouRuZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float baoXianShiGuCheShouRuZhanBi = afterService.baoXianShiGuCheShouRuZhanBi(user, beginDate1, endDate1);
		if(baoXianShiGuCheShouRuZhanBi!=null) {
			return new AjaxResult(baoXianShiGuCheShouRuZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 48 索赔&召回收入占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/suoPeiZhaoHuiShouRuZhanBi")
	public Object suoPeiZhaoHuiShouRuZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float suoPeiZhaoHuiShouRuZhanBi = afterService.suoPeiZhaoHuiShouRuZhanBi(user, beginDate1, endDate1);
		if(suoPeiZhaoHuiShouRuZhanBi!=null) {
			return new AjaxResult(suoPeiZhaoHuiShouRuZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 49 新车准备收入占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/xinCheZhunBeiShouRuZhanBi")
	public Object xinCheZhunBeiShouRuZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float xinCheZhunBeiShouRuZhanBi = afterService.xinCheZhunBeiShouRuZhanBi(user, beginDate1, endDate1);
		if(xinCheZhunBeiShouRuZhanBi!=null) {
			return new AjaxResult(xinCheZhunBeiShouRuZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 50 配件收入占比
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/peiJianShouRuZhanBi")
	public Object peiJianShouRuZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float peiJianShouRuZhanBi = afterService.peiJianShouRuZhanBi(user, beginDate1, endDate1);
		if(peiJianShouRuZhanBi!=null) {
			return new AjaxResult(peiJianShouRuZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 51 工时收入占比
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/gongShiShouRuZhanBi")
	public Object gongShiShouRuZhanBi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float gongShiShouRuZhanBi = afterService.gongShiShouRuZhanBi(user, beginDate1, endDate1);
		if(gongShiShouRuZhanBi!=null) {
			return new AjaxResult(gongShiShouRuZhanBi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 52 配件成本合计
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/peiJianChenBen")
	public Object peiJianChenBen(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float peiJianChenBen = afterService.peiJianChenBen(user, beginDate1, endDate1);
		if(peiJianChenBen!=null) {
			return new AjaxResult(peiJianChenBen);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 53  工时成本合计
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/gongShiChengBen")
	public Object gongShiChengBen(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float gongShiChengBen = afterService.gongShiChengBen(user, beginDate1, endDate1);
		if(gongShiChengBen!=null) {
			return new AjaxResult(gongShiChengBen);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 54  配件毛利合计
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/peiJianMaoLi")
	public Object peiJianMaoLi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float peiJianMaoLi = afterService.peiJianMaoLi(user, beginDate1, endDate1);
		if(peiJianMaoLi!=null) {
			return new AjaxResult(peiJianMaoLi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 55  工时毛利合计
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/gongShiMaoLi")
	public Object gongShiMaoLi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		 Float gongShiMaoLi = afterService.gongShiMaoLi(user, beginDate1, endDate1);
		if(gongShiMaoLi!=null) {
			return new AjaxResult(gongShiMaoLi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 56 维修成本合计
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/weiXiuChengBen")
	public Object weiXiuChengBen(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float weiXiuChengBen = afterService.weiXiuChengBen(user, beginDate1, endDate1);
		if(weiXiuChengBen!=null) {
			return new AjaxResult(weiXiuChengBen);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 57 维修毛利合计
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/weiXiuMaoLi")
	public Object weiXiuMaoLi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float weiXiuMaoLi = afterService.weiXiuMaoLi(user, beginDate1, endDate1);
		if(weiXiuMaoLi!=null) {
			return new AjaxResult(weiXiuMaoLi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 58 配件毛利率
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/peiJianMaoLiLv")
	public Object peiJianMaoLiLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float peiJianMaoLiLv = afterService.peiJianMaoLiLv(user, beginDate1, endDate1);
		if(peiJianMaoLiLv!=null) {
			return new AjaxResult(peiJianMaoLiLv);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 59 工时毛利率
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/gongShiMaoLiLv")
	public Object gongShiMaoLiLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float gongShiMaoLiLv = afterService.gongShiMaoLiLv(user, beginDate1, endDate1);
		if(gongShiMaoLiLv!=null) {
			return new AjaxResult(gongShiMaoLiLv);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 60 维修毛利率
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/weiXiuMaoLiLv")
	public Object weiXiuMaoLiLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float weiXiuMaoLiLv = afterService.weiXiuMaoLiLv(user, beginDate1, endDate1);
		if(weiXiuMaoLiLv!=null) {
			return new AjaxResult(weiXiuMaoLiLv);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 61 保养单车产值
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/baoYangDanCheChanZhi")
	public Object baoYangDanCheChanZhi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float baoYangDanCheChanZhi = afterService.baoYangDanCheChanZhi(user, beginDate1, endDate1);
		if(baoYangDanCheChanZhi!=null) {
			return new AjaxResult(baoYangDanCheChanZhi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 62 机修单车产值
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/jiXiuDanCheChanZhi")
	public Object jiXiuDanCheChanZhi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float jiXiuDanCheChanZhi = afterService.jiXiuDanCheChanZhi(user, beginDate1, endDate1);
		if(jiXiuDanCheChanZhi!=null) {
			return new AjaxResult(jiXiuDanCheChanZhi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 63 钣喷单车产值
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/banPenDanCheChanZhi")
	public Object banPenDanCheChanZhi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float banPenDanCheChanZhi = afterService.banPenDanCheChanZhi(user, beginDate1, endDate1);
		if(banPenDanCheChanZhi!=null) {
			return new AjaxResult(banPenDanCheChanZhi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 64 洗美单车产值
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/xiMeiDanCheChanZhi")
	public Object xiMeiDanCheChanZhi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float xiMeiDanCheChanZhi = afterService.xiMeiDanCheChanZhi(user, beginDate1, endDate1);
		if(xiMeiDanCheChanZhi!=null) {
			return new AjaxResult(xiMeiDanCheChanZhi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 65 保险事故车单车产值
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/baoXianShiGuCheDanCheChanZhi")
	public Object baoXianShiGuCheDanCheChanZhi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float baoXianShiGuCheDanCheChanZhi = afterService.baoXianShiGuCheDanCheChanZhi(user, beginDate1, endDate1);
		if(baoXianShiGuCheDanCheChanZhi!=null) {
			return new AjaxResult(baoXianShiGuCheDanCheChanZhi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 66 索赔&召回单车产值
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/suoPeiZhaoHuiDanCheChanZhi")
	public Object suoPeiZhaoHuiDanCheChanZhi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float suoPeiZhaoHuiDanCheChanZhi = afterService.suoPeiZhaoHuiDanCheChanZhi(user, beginDate1, endDate1);
		if(suoPeiZhaoHuiDanCheChanZhi!=null) {
			return new AjaxResult(suoPeiZhaoHuiDanCheChanZhi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 67 新车准备单车产值
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/xinCheZhunBeiDanCheChanZhi")
	public Object xinCheZhunBeiDanCheChanZhi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float xinCheZhunBeiDanCheChanZhi = afterService.xinCheZhunBeiDanCheChanZhi(user, beginDate1, endDate1);
		if(xinCheZhunBeiDanCheChanZhi!=null) {
			return new AjaxResult(xinCheZhunBeiDanCheChanZhi);
		}else {
			return new AjaxResult(0);
		}
	}
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 68 维修单车产值
	 * @throws ParseException 
	 * 
	 */
	@RequestMapping(value = "/shouHouWeiXiuDanCheChanZhi")
	public Object shouHouWeiXiuDanCheChanZhi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=sysuserService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		Float shouHouWeiXiuDanCheChanZhi = afterService.shouHouWeiXiuDanCheChanZhi(user, beginDate1, endDate1);
		if(shouHouWeiXiuDanCheChanZhi!=null) {
			return new AjaxResult(shouHouWeiXiuDanCheChanZhi);
		}else {
			return new AjaxResult(0);
		}
	}

	
}
